package com.yh.service.impl;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyCustomTypeConfig {
    @Value("${mycustomtype.name}")
    private String name;

    @Bean
    public MyCustomType myCustomType() {
        return new MyCustomType(name);
    }
}
